package com.smartEdu.dao.impl;


import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.HomeworkSubmitDao;
import com.smartEdu.mapper.HomeworkSubmitMapper;
import com.smartEdu.model.HomeworkSubmitModel;

@Repository(value="homeworkSubmitDaoImpl")
public class HomeworkSubmitDaoImpl implements HomeworkSubmitDao{
	@Autowired(required=false)
	@Qualifier("homeworkSubmitMapper")
	private HomeworkSubmitMapper homeworkSubmitMapper;
	
	@Override
	public HomeworkSubmitModel getHomeworkCompleted(HashMap<String,Object>map) {
		// TODO Auto-generated method stub
		return homeworkSubmitMapper.getHomeworkCompleted(map);
	}

	@Override
	public void addOrUpdateHomeworkCompleted(HomeworkSubmitModel model) {
		// TODO Auto-generated method stub
		homeworkSubmitMapper.addOrUpdateHomeworkCompleted(model);
		
	}

	@Override
	public void updateHomeworkCompleted(HashMap<String,Object> map) {
		// TODO Auto-generated method stub
		homeworkSubmitMapper.updateHomeworkCompleted(map);
	}

	@Override
	public List<HomeworkSubmitModel> getHomeworkCompletedInfo(HashMap<String, Object> map) {
		// TODO Auto-generated method stub
		return homeworkSubmitMapper.getHomeworkCompletedInfo(map);
	}

}
